package com.henghai.zhenxuan.ui.page.adapter;

import android.content.Context;

import androidx.recyclerview.widget.RecyclerView;

import com.henghai.zhenxuan.data.bean.WinnerBean;
import com.henghai.zhenxuan.databinding.AdapterWinnerItemBinding;
import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter;

public class WinnerListAdapter extends SimpleDataBindingAdapter<WinnerBean.RowsBean, AdapterWinnerItemBinding> {

    public WinnerListAdapter(Context context) {
        super(context, com.henghai.zhenxuan.R.layout.adapter_winner_item, DiffUtils.getInstance().getWinnerItemCallback());
    }

    @Override
    protected void onBindItem(AdapterWinnerItemBinding adapterWinnerItemBinding, WinnerBean.RowsBean winnerBean, RecyclerView.ViewHolder viewHolder) {
        adapterWinnerItemBinding.setVm(winnerBean);
    }
}
